package cn.pn.project.client.commodity.follback;

import cn.pn.project.client.commodity.CommodityFeign;
import cn.pn.project.module.commodity.CommodityModule;
import cn.pn.project.pojo.commodity.Commodity;
import cn.pn.project.vo.CommodityVo;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class CommodityFeignFallBack implements CommodityFeign {
    @Override
    public CommodityModule findCommodityAllMessage(Integer commodityId) {
        System.out.println("根据商品Id查询商品信息出现异常，回滚！");
        return null;
    }



    @Override
    public List<Commodity> getDisCommodityListByCityId(Map<String,Object> one) {
        System.out.println("根据城市查询前六条折扣商品出现异常，回滚！");
        return null;
    }

/*
    @Override
    public List<Commodity> getAllDisCommodityListByCityId(Integer cityId) {
        System.out.println("根据城市查询全部商品出现异常，回滚！");
        return null;
    }
*/

    @Override
    public List<Commodity> getHotCommodityListByCityId(Map<String,Object> one) {
        System.out.println("根据城市查询前六条热门商品出现异常，回滚！");
        return null;
    }

    @Override
    public List<Commodity> getCommodityScheduleByCommodityId(Integer commodityId) {
        System.out.println("根据商品Id查询商品排期，出现异常，回滚！");
        return null;
    }

    @Override
    public List<Commodity> getCommodityListByCityIdAndFatherTypeId(Map<String,Object> one) {
        System.out.println("根据父类类型Id和城市Id查询商品信息，出现异常，回滚！");
        return null;
    }

    @Override
    public List<Commodity> getCommodityCountByCityIdAndFatherTypeId(Integer fatherTypeId,Integer cityId) {
        System.out.println("根据父类类型Id和城市Id查询商品总数，出现异常，回滚！");
        return null;
    }

    @Override
    public List<Commodity> getCommodityByMoreReason(Map<String, Object> one) {
        System.out.println("根据多条件查询商品信息，出现异常，回滚！");
        return null;
    }

    @Override
    public List<Commodity> getCountCommodityByMoreReason(Map<String, Object> one) {
        System.out.println("根据多条件查询商品总数，出现异常，回滚！");
        return null;
    }

    @Override
    public List<CommodityVo> getCommodityByCommodityIdAndCommodityStatus(Map<String, Object> one) {
        System.out.println("根据商品编号和商品状态Id获取商品简单信息，出现异常，回滚！");
        return null;
    }

    @Override
    public Commodity getCommodityByCommodityId(Integer commodityId) {
        System.out.println("根据商品编号查询商品信息！");
        return null;
    }
}
